﻿package sound{	import flash.media.*;	import flash.net.URLRequest;		public class Music	{		public static const GAME:uint = 0;		public static const MENU:uint = 1;				private static var sounds:Array = ["resources/sound/loop18.mp3", "resources/sound/loop18.mp3"];				private static var _sndTransform:SoundTransform = new SoundTransform();		private static var _sound:Sound;		private static var _sc:SoundChannel;				public static function play(type:uint):void		{			stop();			if (Options.MUSIC)			{				_sound = new Sound();				_sound.load(new URLRequest(sounds[type]));				_sc = _sound.play(0, 99999, _sndTransform);			}		}				public static function stop():void		{			if (_sc) 			{				_sc.stop();				_sc = null;			}		}	}}